<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>催收安排</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>催收安排</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:form action="create">
    <g:if test="${flash.message}">
        <div class="message alert alert-info" role="status">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${this.menu}">
        <ul class="errors" role="alert">
            <g:eachError bean="${this.menu}" var="error">
                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                        error="${error}"/></li>
            </g:eachError>
        </ul>
    </g:hasErrors>

    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    催收安排
                </div>

                <div class="panel-body form-horizontal">

                    <div class="form-group">

                        <label class="col-md-5 control-label ">借款人：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="borrName" id="borrName" value="${mortgage?.borrName}" readonly="true"/>
                        </div>

                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">借款人联系方式：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="borrPhone" id="borrPhone"  value="${mortgage?.borrPhone}" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">借款人家庭地址：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="borrAddress" id="borrAddress"  value="${mortgage?.borrAddress}" readonly="true"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-5 control-label ">贷款编号：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="serialNumber" id="serialNumber"  value="${mortgage?.serialNumber}" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收开始时间：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="mortgageType" id="mortgageType"  value="${mortgage?.mortgageType?.name}" readonly="true"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收结束时间：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="mortgageStatus" id="mortgageStatus"  value="${mortgage?.mortgageStatus?.name}" readonly="true"/>
                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收措施：</label>
                        <div class="col-md-3">
                            <g:textField class="form-control m-b" name="isNonPerformingLoan" id="isNonPerformingLoan"  value="${mortgage?.isNonPerformingLoan}" readonly="true"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收负责人：</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="identityType" id="identityType"
                                      optionKey="id" optionValue="fullName"
                                      from="${com.cindata.User.list()}"
                                      value="${params?.fullName}"
                                      noSelection="${['': '请选择']}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">催收要求说明：</label>
                        <div class="col-md-3">
                            <g:textArea  name="loansBalance" id="loansBalance"  value="${mortgage?.loansBalance}" class="form-control textarea" rows="5" cols="5"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-2 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="create" value="保存"/>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</g:form>
</body>
</html>
